<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import ="com.qm.hibernate.Tuser" %>
<%@ page import ="com.qm.hibernate.Tpost" %>
<%@ page import="java.text.SimpleDateFormat" %>   
<%@ taglib prefix="s" uri="/struts-tags"%><%@ taglib prefix="s"
	uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>社区主页</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="../Css/styles.css">

</head>

<body>
<% 
	Tuser user = (Tuser)session.getAttribute("user");
	
%>
	<%@ include file="../Public/communityHeader.jsp"%>
	<a href="index" >球迷小区</a>
	<span style="color:black">>社区主页</span>
	<br />
	</div>
	<div id="container">
		<a href="activity">社区活动</a>
		<table style="text-align:left;">
			<tr>
				<th style="width:500;padding:10 0 10 0">帖子标题</th>
				<th style="width:500">作者/时间</th>
				<th>回复</th>
			</tr>
			 <s:iterator id="list" value="#session.list">
					<tr>
					<td>
						<a href="postAction?id=<s:property value="#list[0].id" />"> <s:property value="#list[0].title" /> </a>
					</td>
					<td>					
						<a href = "hisIndex?id=<s:property value="#list[1].id"/>"> 
						 <s:property value="#list[1].name" />
						</a>
						 /<s:property value="#list[0].time" />
						</td>  
						 <td>			
						 <s:property value="#list[0].commentCount" />						
					</td>
					</tr>
				</s:iterator> 
		</table>
		<br /> <a href="chitChat">灌水区</a>
		<table style="text-align:left;">
			<tr>
				<th style="width:500;padding:10 0 10 0">帖子标题</th>
				<th style="width:500">作者/时间</th>
				<th>回复</th>
			</tr>
			 <s:iterator id="list" value="#session.list2">
					<tr>
					<td>
						<a href="postAction?id=<s:property value="#list[0].id" />"> <s:property value="#list[0].title" /> </a>
					</td>
					<td>					
						<a href = "hisIndex?id=<s:property value="#list[1].id"/>"> 
						 <s:property value="#list[1].name" />
						</a>
						/<s:property value="#list[0].time"/>
						</td>  
						 <td>
						 <s:property value="#list[0].commentCount" />					
					</td>
					</tr>
				</s:iterator> 
		</table>
	</div>
</body>
</html>
